<?php
/*********NgocNTM__******************************/
//LAY SESSION CAC BIEN TRONG HO SO TRANH CHAP
//utf8_encode: CHUYEN MA
$v_recordtype_filter = $_SESSION['onegate_current_recordtype'];
//echo 'sadfsdf:'.$_REQUEST['user_value'];
$v_user= urldecode($_REQUEST['user_value']);//utf8_encode
$v_user_wife= urldecode($_REQUEST['user_wife_value']);
/************************End__**********************/
$v_page = 1;
if(isset($_REQUEST['hdn_page'])){
	$v_page=$_REQUEST['hdn_page'];	
}
$v_limit_row = _CONST_NUMBER_OF_ROW_PER_LIST;
if(isset($_REQUEST['hdn_page'])&&$_REQUEST['hdn_page']!=""){
	$v_page=$_REQUEST['hdn_page'];	
}
//NgocNTM__update

if(_is_sqlserver()){
		$sql = "EXEC Onegate_RecordConflictGetAll_By_username ";//Loc theo ten
		//$sql=$sql."'".$v_recordtype_filter."'";
		$sql=$sql."'".$v_user."'";
		$sql=$sql.",'".$v_user_wife."'";
		$sql = $sql . "," . $v_page;
		$sql = $sql . "," . $v_limit_row;
		$ado_conn->SetFetchMode(ADODB_FETCH_ASSOC);
		$arr_all_record = $ado_conn->GetAll($sql);
		$v_count = sizeof($arr_all_record);	
}
//$v_total_record=sizeof($arr_all_record);
$v_total_record = $arr_all_record[0]['TOTAL_RECORD'];


?>
